package com.zsj.mode.strategypattern;

import com.zsj.mode.Mapper;

import java.io.Serializable;
import java.util.List;

/**
 * @author zsj
 * @version 1.0
 * @date 2024/5/18 20:48
 * @description 策略模式
 */
public interface StrategyPattern<T> {

    T executeInsert(Mapper<T> mapper, List<T> data);

    T executeUpdate(Mapper<T> mapper, List<T> data);

    T executeDelete(Mapper<T> mapper, List<? extends Serializable> ids);


}
